package com.irain.pp.tool.mybatis.config;

import com.irain.pp.tool.mybatis.pagehelper.PpMySqlDialect;
import com.irain.pp.tool.mybatis.pagehelper.PageHelperUtils;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author WangYanPeng
 * @date 2017/10/19 19:52
 */
@Configuration
public class PageHelperConfig {

    @PostConstruct
    public void init() throws NoSuchFieldException, IllegalAccessException {
        PageHelperUtils.replaceSqlDialect("mysql",PpMySqlDialect.class);
    }
}
